package v1

type CreateArticleRequest struct {
	Title   string `json:"title" binding:"required"`
	Content string `json:"content" binding:"required"`
	UserID  uint   `json:"userId" binding:"required"`
	Tags    []uint `json:"tags" binding:"required"`
}
type GetArticlesResponse struct {
	Title     string            `json:"title" binding:"required"`
	Content   string            `json:"content" binding:"required"`
	UserId    uint              `json:"userId" binding:"required"`
	Tags      []GetTagsResponse `json:"tags" binding:"required"`
	UserName  string            `json:"username" binding:"required"`
	ArticleId uint              `json:"articleId" binding:"required"`
}
type GetArticlesByUserIdResponse struct {
	Title     string            `json:"title" binding:"required"`
	Content   string            `json:"content" binding:"required"`
	UserId    uint              `json:"userId" binding:"required"`
	Tags      []GetTagsResponse `json:"tags" binding:"required"`
	UserName  string            `json:"username" binding:"required"`
	ArticleId uint              `json:"articleId" binding:"required"`
}
type GetArticlesByTagIdResponse struct {
	Title     string            `json:"title" binding:"required"`
	Content   string            `json:"content" binding:"required"`
	UserId    uint              `json:"userId" binding:"required"`
	Tags      []GetTagsResponse `json:"tags" binding:"required"`
	UserName  string            `json:"userName" binding:"required"`
	ArticleId uint              `json:"articleId" binding:"required"`
}
